package iamdev.me.ytds.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zxc
 * @since 2018-07-04
 */
@TableName("tb_evernote_import")
public class EvernoteImport implements Serializable {

    private static final long serialVersionUID = 1L;

    public static final int IMPORT_WAIT = 0;
    public static final int IMPORT_ING = 1;
    public static final int IMPORT_SUCCESS = 2;
    public static final int IMPORT_FAIL = 3;


    /**
     * id
     */
    @TableId(value = "evernote_id", type = IdType.AUTO)
    private Integer evernoteId;
    /**
     * 导入日期
     */
    @TableField("import_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date importDate;
    /**
     * 成功条数
     */
    @TableField("success_size")
    private Integer successSize;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 导入状态,0表示等待导入，1表示导入中，2表示导入成功，3表示导入失败
     */
    @TableField("import_status")
    private Integer importStatus;
    /**
     * 印象笔记文件id
     */
    @TableField("evernote_file_id")
    private String evernoteFileId;
    /**
     * 导入结果，中文描述
     */
    @TableField("import_result")
    private String importResult;


    public Integer getEvernoteId() {
        return evernoteId;
    }

    public void setEvernoteId(Integer evernoteId) {
        this.evernoteId = evernoteId;
    }

    public Date getImportDate() {
        return importDate;
    }

    public void setImportDate(Date importDate) {
        this.importDate = importDate;
    }

    public Integer getSuccessSize() {
        return successSize;
    }

    public void setSuccessSize(Integer successSize) {
        this.successSize = successSize;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getImportStatus() {
        return importStatus;
    }

    public void setImportStatus(Integer importStatus) {
        this.importStatus = importStatus;
    }

    public String getEvernoteFileId() {
        return evernoteFileId;
    }

    public void setEvernoteFileId(String evernoteFileId) {
        this.evernoteFileId = evernoteFileId;
    }

    public String getImportResult() {
        return importResult;
    }

    public void setImportResult(String importResult) {
        this.importResult = importResult;
    }

    @Override
    public String toString() {
        return "EvernoteImport{" +
            ", evernoteId=" + evernoteId +
            ", importDate=" + importDate +
            ", successSize=" + successSize +
            ", userId=" + userId +
            ", importStatus=" + importStatus +
            ", evernoteFileId=" + evernoteFileId +
            ", importResult=" + importResult +
            "}";
    }
}
